/**
 * Created by Administrator on 2017/6/9.
 */
import {fetch} from 'api/fetch';

// 获取需求列表
export const callGetDemandList = (currentPage, pageRow = 5) => {
  return fetch({
    url: '/api/user/seek/list',
    method: 'post',
    data: {
      currentPage,
      pageRow
    }
  })
}

// 获取需求详情
export const callGetDemandDetail = (recordId) => {
  return fetch({
    url: '/api/user/seek/detail',
    method: 'post',
    data: {
      recordId
    }
  })
}

// 我的需求.提交一个需求
export const callAddDemand = (client = {}) => {
  return fetch({
    url: '/api/user/seek/submit',
    method: 'post',
    data: {
      ...client
    }
  })
}


